<template>
  <div class="em-button">
    <b-button
      :variant="type"
      v-b-toggle
      :href="pageSelector"
      @click="emButtonClick">
      <slot></slot>
    </b-button>
  </div>
</template>

<script>
export default {
  name: 'EMButton',
  props: {
    type: {
      type: String,
      default: 'outline-primary'
    },
    pageSelector: {
      type: String
    }
  },
  methods: {
    emButtonClick () {
      this.$emit('emButtonClick')
    }
  }
}
</script>

<style scoped>

</style>
